package com.wb.creational.singleton;

/**
 * @author 魏彪
 */
public class TaskManager {

    private static TaskManager tm = null;

    private TaskManager() { // 初始化窗口
    }

    public void displayProcesses() {
        System.out.println("显示进程");
    }

    public void displayServices() {
        System.out.println("显示服务");
    }

    public static TaskManager getInstance() {

        if (tm == null) {
            return new TaskManager();
        }
        return tm;
    }


}
